﻿<%@ Page Title="Quản lý thời lượng chương trình" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="quanlythoiluongct.aspx.cs" Inherits="admin_quanlythoiluongct" %>
<%@ Register TagPrefix="dxwgv" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register TagPrefix="dxe" Namespace="DevExpress.Web.ASPxEditors" Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div align="center">
    <dxwgv:ASPxGridView CssClass="table table-hover" ID="gv_qlChuongTrinh" runat="server" 
        ClientInstanceName="grid"
        EnableRowsCache="False" 
        AutoGenerateColumns="False" KeyFieldName="ct.mact" 
        onrowupdating="gv_qlChuongTrinh_RowUpdating">
        <Columns>
            <dxwgv:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0" Caption="Action">
                <EditButton Visible="True" Text="Sửa">
                </EditButton>
                <DeleteButton Text="Xóa">
                </DeleteButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn Caption="Ảnh" 
                VisibleIndex="1">
                <DataItemTemplate>
                    <dxe:ASPxImage ID="ASPxImage1" runat="server" CssClass="img-polaroid" 
                        Height="70px" ImageUrl='<%#Eval("ct.hinhanh","../images_chuongtrinh/{0}") %>'>
                    </dxe:ASPxImage>
                </DataItemTemplate>
            </dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn ShowInCustomizationForm="True" Caption="Tên Chương Trình" 
                VisibleIndex="2" FieldName="ct.tenct">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Loại Chương Trình" FieldName="tenLoaiCt" 
                VisibleIndex="3">
            </dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn FieldName="ct.thoiluong" ShowInCustomizationForm="True" 
                Caption="Thời Lượng" VisibleIndex="4">
    <PropertiesTextEdit>
        <Style HorizontalAlign="Center" VerticalAlign="Middle">
        </Style>
    </PropertiesTextEdit>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Mô tả" FieldName="ct.mota" 
                VisibleIndex="5">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataHyperLinkColumn Caption="More" FieldName="ct.mact" 
                VisibleIndex="6">
                <DataItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ct.mact","quanlilichdien.aspx?id={0}") %>'>Ql Lịch Diễn</asp:HyperLink>
                </DataItemTemplate>
            </dxwgv:GridViewDataHyperLinkColumn>
        </Columns>
        <SettingsEditing Mode="PopupEditForm" />
        <SettingsText CommandCancel="Hủy" CommandDelete="Xóa" CommandEdit="Sửa" 
            CommandNew="Thêm" CommandUpdate="Lưu" />
        <Templates>
            <EditForm>
                <table style="width: 93%;">
                    <tr>
                        <td class="style6">
                            Tên Chương Trình</td>
                        <td class="style7" colspan="3">
                           
                            <dxe:ASPxTextBox ID="ASPxTextBox1" ReadOnly="True" runat="server" Height="16px" 
                                Text='<%# Eval("ct.tenct") %>' Width="588px">
                            </dxe:ASPxTextBox>
                             <dxe:ASPxLabel ID="ASPxLabel1" runat="server" Text='<%# Eval("ct.mact") %>' 
                                Height="16px" Visible="False" Width="78px">
                            </dxe:ASPxLabel>
                        </td>
                    </tr>
                    <tr>
                        <td class="style8">
                            Ảnh</td>
                        <td class="style9">
                            
                            <dxe:ASPxImage ID="ASPxImage2" runat="server" Height="73px" 
                                ImageUrl='<%# Eval("ct.hinhanh","../images_chuongtrinh/{0}") %>' Width="81px">
                            </dxe:ASPxImage>
                            <dxe:ASPxLabel ID="ASPxLabel2" runat="server" Height="16px" 
                                Text='<%# Eval("ct.hinhanh") %>' Visible="False" Width="21px">
                            </dxe:ASPxLabel>
                        </td>
                        <td class="style9">
                            Thời Lượng Cập Nhật (+ hoặc -)</td>
                        <td class="style9" width="100">
                            <dxe:ASPxTextBox ID="ASPxTextBox3" runat="server" 
                                 Width="170px">
                            </dxe:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            Mô Tả</td>
                        <td colspan="3">
                            <dxe:ASPxTextBox ID="ASPxTextBox4" ReadOnly="True" runat="server" Height="16px" 
                                Text='<%# Eval("ct.mota") %>' Width="593px">
                            </dxe:ASPxTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style6">
                            &nbsp;</td>
                        <td colspan="3">
                         <dxwgv:ASPxGridViewTemplateReplacement  ID="ASPxGridViewTemplateReplacement1"
                                runat="server" ReplacementType="EditFormUpdateButton">
                            </dxwgv:ASPxGridViewTemplateReplacement>
                            <dxwgv:ASPxGridViewTemplateReplacement ID="ASPxGridViewTemplateReplacement2" 
                                runat="server" ReplacementType="EditFormCancelButton">
                            </dxwgv:ASPxGridViewTemplateReplacement>
                        </td>
                    </tr>
                </table>
            </EditForm>
        </Templates>
    </dxwgv:ASPxGridView>

    </div>
</asp:Content>

